'use client'
import { ReactNode } from "react";
import {usePathname} from 'next/navigation'


export default function MainLayout({children}:Readonly<{children:ReactNode}>){
    const pathName = usePathname()
    
    if (pathName === '/login') {
        return <>{children}</>
    }
    return (
        <>
            <div>header</div>
            <div>sider</div>
            <div>{children}</div>
        </>
    )
}